/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package javaapplication1;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author jcadavid
 */
@Embeddable
public class ResourcesmonitoringPK implements Serializable {
    @Basic(optional = false)
    @Column(name = "UUID", nullable = false, length = 50)
    private String uuid;
    @Basic(optional = false)
    @Column(name = "Id", nullable = false, length = 50)
    private String id;

    public ResourcesmonitoringPK() {
    }

    public ResourcesmonitoringPK(String uuid, String id) {
        this.uuid = uuid;
        this.id = id;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (uuid != null ? uuid.hashCode() : 0);
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof ResourcesmonitoringPK)) {
            return false;
        }
        ResourcesmonitoringPK other = (ResourcesmonitoringPK) object;
        if ((this.uuid == null && other.uuid != null) || (this.uuid != null && !this.uuid.equals(other.uuid))) {
            return false;
        }
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "javaapplication1.ResourcesmonitoringPK[ uuid=" + uuid + ", id=" + id + " ]";
    }
    
}
